package com.ruoyi.system.domain.aggregation;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账户对象 account
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class Account extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 账户可兑换余额，单位分 */
    @Excel(name = "账户可兑换余额(分)")
    private Long balance;

    /** 账户总余额 */
    @Excel(name = "账户总余额(分)")
    private Long totalBalance;

    /** 积分账户余额 */
    @Excel(name = "积分账户余额")
    private BigDecimal pointBalance;

    /** 账期 */
    @Excel(name = "账期")
    private String period;

    /** 删除标志，0未删除，1删除 */
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setBalance(Long balance) 
    {
        this.balance = balance;
    }

    public Long getBalance() 
    {
        return balance;
    }

    public void setTotalBalance(Long totalBalance) 
    {
        this.totalBalance = totalBalance;
    }

    public Long getTotalBalance() 
    {
        return totalBalance;
    }

    public void setPointBalance(BigDecimal pointBalance) 
    {
        this.pointBalance = pointBalance;
    }

    public BigDecimal getPointBalance() 
    {
        return pointBalance;
    }

    public void setPeriod(String period) 
    {
        this.period = period;
    }

    public String getPeriod() 
    {
        return period;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("balance", getBalance())
            .append("totalBalance", getTotalBalance())
            .append("pointBalance", getPointBalance())
            .append("period", getPeriod())
            .append("deleted", getDeleted())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}

